package coreentity

import (
	"core/class"
	"core/selfreg"
	"reflect"
)

type HtRoleMenu struct {
	Id int64 `json:"id,string"                         gorm:"column:id;primaryKey;comment:主键;autoIncrement:false;"`

	HtroleId int64 `json:"htroleId,string"                    gorm:"column:htrole_id;DEFAULT:0;not null;index;comment:角色编号;"`
	HtmenuId int64 `json:"htmenuId,string"                    gorm:"column:htmenu_id;DEFAULT:0;not null;comment:菜单编号;"`
}

func (p *HtRoleMenu) TableName() string {
	return "HtRoleMenu"
}

func init() {

	var mcls = &HtRoleMenu{}
	var m = &class.MyClass{
		Name:     "角色菜单表",
		Ename:    "",
		FullName: "",
		Memo:     "",
		Fileds:   nil,
		PrjName:  "",
		Type:     reflect.TypeOf(mcls),
	}
	selfreg.AddEntity(m)
}
